<?php
//short for DIRECTORY_SEPARATOR
defined('WWW_PATH') or define('WWW_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'www');

$commonConfig = require dirname(__FILE__).'/../../../common/config/main.php';

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
$config = array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'zy',
//    'homeUrl'=>'/site/',
    'import'=>array(),
	// preloading 'log' component
	'preload'=>array('log'),
	// autoloading model and component classes
    'modulePath'=>ZY_COMMON_PATH.'/modules/',
	'modules'=>array(),

	// application components
	'components'=>array(
		'user'=>array(
			// enable cookie-based authentication
			'allowAutoLogin'=>true,
		),
		// uncomment the following to enable URLs in path-format
		'urlManager'=>array(
			'urlFormat'=>'path',
            'showScriptName'=>false,
//			'rules'=>array(
//				'<controller:\w+>/<id:\d+>'=>'<controller>/view',
//				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
//				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
//			),
		),
        'dynamicRes'=>array(
            'class' => 'common.extensions.DynamicRes.DynamicRes',
            'urlConfig' => array( // Its fix Css, and convert Url to RealName 
                'baseUrl'  => '/', // Url of your Site (ending with /), modify it if you use subdomain
                'basePath' => WWW_PATH.'/', // path of your site (ending with /) (No Change This)
            )
        ),
	),
    
    
    
	// application-level parameters that can be accessed
	// using Yii::app()->params['paramName']
	'params'=>array(
		// this is used in contact page
		'adminEmail'=>'webmaster@example.com',
	),
);

$config['import'] = array_merge($commonConfig['import'], $config['import']);
$config['components'] = array_merge($commonConfig['components'], $config['components']);
$config['params'] = array_merge($commonConfig['params'], $config['params']);
$config['modules'] = array_merge($commonConfig['modules'], $config['modules']);

return $config;